package com.zhanggm.zyk.contract.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "zyk-auth", fallback = AuthServiceImpl.class)
public interface AuthService {

    @GetMapping("/user/getUserById")
    public TUser getUserById(@RequestParam("id") Integer id);

    @GetMapping("/user/isRole")
    public boolean isRolerByUserId(@RequestParam("userId") String userId, @RequestParam("role") String role);

}
